package com.ywq.app.biz;

import java.util.List;
import com.ywq.app.domain.ArtClass;
import com.ywq.app.domain.ArtPic;
import com.ywq.app.domain.PicBidLog;
import com.ywq.common.exception.AppBusinessException;
import com.ywq.common.page.PageModel;

public interface ArtPicBiz {
	/**
	 * 查询所有的图片
	 * 
	 * @param page
	 * @return
	 * @throws AppBusinessException
	 */
	public PageModel getArtPicList(Integer page, String picType)
			throws AppBusinessException;

	/**
	 * 添加艺术画
	 * 
	 * @param artPic
	 * @throws AppBusinessException
	 */
	public void insertArtPic(ArtPic artPic) throws AppBusinessException;

	// 图片详情
	public ArtPic getArtPic(String picId) throws AppBusinessException;

	public List<ArtClass> getChildById(String parent,String type)
			throws AppBusinessException;

	public void addArtClass(ArtClass artClass) throws AppBusinessException;

	public ArtClass getClassById(String classId) throws AppBusinessException;

	public void updateClassById(ArtClass artClass) throws AppBusinessException;

	public PageModel getArtPicListForMisc(Integer page, String picType,
			Integer pageSize) throws AppBusinessException;

	public PicBidLog getPicBidLogByPicId(String picId,String auctionId)
			throws AppBusinessException;

	public void insertPicBidLog(PicBidLog newBid) throws AppBusinessException;

	public void noForwardPic(String picId) throws AppBusinessException;

	public void deletePic(String identifier) throws AppBusinessException;
	
	 public void updatePic(ArtPic artPic) throws AppBusinessException;
	 
	  public List<ArtPic> getSameClassPicList(String classId) throws AppBusinessException;
	  
	  public PageModel getAllClassPageModel(Integer page, Integer pageSize,String name) throws AppBusinessException;
	  
	  public void updatePicViewAmount(ArtPic artPic) throws AppBusinessException;

}
